# coding=utf-8
import redis

# 创建redis链接对象
r = redis.Redis(host='127.0.0.1', port=6379)
# 存储键值对
r.set('name', 'heruijie')
# 获取值
print(r.get('name'))
